package cn.hacz.edu.repository.ext;

import org.springframework.data.jpa.repository.support.SimpleJpaRepository;

import javax.persistence.EntityManager;
import java.io.Serializable;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
public class SimpleBaseJpaRepository<T, ID extends Serializable> extends SimpleJpaRepository<T, ID> implements BaseJpaRepository<T, ID>{
     final EntityManager entityManager;

    Class<T> clazz;

    public SimpleBaseJpaRepository(Class<T> domainClass, EntityManager em) {
        super(domainClass, em);
        this.clazz = domainClass;
        this.entityManager = em;
    }
}
